<table width="100%" border="0">
    <tr>
        <td colspan="2"><h2>Fiche March&eacute;</h2></td>
    </tr>

    <tr>
        <td width="23%" style="vertical-align:top; border-right:1px #333 dotted; padding-left: 5px; padding-right: 10px;">
            [Cr&eacute;er un nouvel utilisateur]<br/>
            [Tous les utilisateurs]<br/>
            [Utilisateurs internes]<br/>
            [Fournisseurs]<br/>
            [Client]<br/>
        </td>
        <td width="77%" height="900" style="vertical-align:top;">
            <div id="view-content">
                <?php if (isset($this->rolesAll)) { ?>
                    <h2><?php echo $this->translate('Liste des roles utilisateurs') ?> : </h2>

                    
                    <!-- Table sorter -->
                    <table id="tablesorter-demo" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
                        <thead>
                            <tr>
                                <th>Intitul&eacute;</th>

                                <th>Description</th>
                                <th>Etat</th>
<!--                                <th>Etat</th>-->
                                <th>Famille</th>
                                <th>Delegation</th>
                                   <th>Action</th>
                                

                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $roles = $this->rolesAll;
                            foreach ($roles as $role) {
                                ?>
                                <tr>
                                    <td><?php echo htmlentities($role['nom']); ?></td>
                                    <td><?php echo htmlentities($role['description']); ?></td>
                                    <td><?php echo $role['etat']; ?></td>

<!--                                    <td><?php echo $role['etat']; ?></td>-->
                                    <td><?php echo $role['famille']; ?></td>
                                    <td><?php echo $role['delegation_fm']; ?></td>
                                    <?php echo '<td><a href="' . $this->url(array('action' => 'edit', 'id' => $user['idUser'])) . '">Modifier</a> | <a href="' . $this->url(array('action' => 'del', 'id' => $user['idUser'])) . '" >Supprimer</a></td>'; ?>
                                </tr>
                            <?php } ?>


                        </tbody>
                    </table>
                    <!-- End Table sorter -->




                    <?php
                }
                ?>

                <?php if (isset($this->formUser)) { ?>
                    <h2><?php echo $this->translate('view_user_add') ?> : </h2>
                    <?php echo $this->formUser;
                } ?>
            </div>

        </td>


    </tr>

</table>

